home *** CD-ROM | disk | FTP | other *** search
- *** ./Makefile.in Mon Jul 28 06:16:03 1997
- --- ../libpcap-0.4/./Makefile.in Thu Nov 12 09:54:40 1998
- ***************
- *** 47,53 ****
- DEFS = @DEFS@
-
- # Standard CFLAGS
- ! CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
-
- INSTALL = @INSTALL@
- RANLIB = @V_RANLIB@
- --- 47,55 ----
- DEFS = @DEFS@
-
- # Standard CFLAGS
- ! # drop the CCOPT bit. We get that from the parent Makefile
- ! #CFLAGS = $(CCOPT) $(INCLS) $(DEFS)
- ! CFLAGS = $(INCLS) $(DEFS)
-
- INSTALL = @INSTALL@
- RANLIB = @V_RANLIB@
- ***************
- *** 63,71 ****
- # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
- # Also, gcc does not remove the .o before forking 'as', which can be a
- # problem if you don't own the file but can write to the directory.
- .c.o:
- @rm -f $@
- ! $(CC) $(CFLAGS) -c $(srcdir)/$*.c
-
- PSRC = pcap-@V_PCAP@.c
- CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c \
- --- 65,77 ----
- # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
- # Also, gcc does not remove the .o before forking 'as', which can be a
- # problem if you don't own the file but can write to the directory.
- + #
- + # explicitly put .o files into a directory depending on ABI (defined by
- + # parent)
- +
- .c.o:
- @rm -f $@
- ! $(CC) $(CFLAGS) -c $(srcdir)/$*.c -o $(srcdir)/$(TYPE)/$*.o
-
- PSRC = pcap-@V_PCAP@.c
- CSRC = pcap.c inet.c gencode.c optimize.c nametoaddr.c \
- ***************
- *** 88,102 ****
- TAGFILES = \
- $(SRC) $(HDR) $(TAGHDR)
-
- ! CLEANFILES = $(OBJ) libpcap.a $(GENSRC) $(GENHDR) lex.yy.c
-
- ! all: libpcap.a
-
- ! libpcap.a: $(OBJ)
- @rm -f $@
- ! ar rc $@ $(OBJ)
- $(RANLIB) $@
-
- scanner.c: $(srcdir)/scanner.l
- @rm -f $@
- $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
- --- 94,139 ----
- TAGFILES = \
- $(SRC) $(HDR) $(TAGHDR)
-
- ! CLEANFILES = $(OBJ) libpcap.a libpcap.so libpcap_o32.a libpcap_o32.so \
- ! libpcap_64.a libpcap_64.so $(GENSRC) $(GENHDR) lex.yy.c
- !
- ! #all: libpcap.a
- !
- ! # Make sure the directory for .o files exists
- ! $(TYPE):
- ! @rm -rf $@
- ! mkdir $@
- !
- ! # Add depenedancy for the subdirectory and cd there to do the archiving
- ! libpcap.a: $(TYPE) $(OBJ)
- ! @rm -f $@
- ! cd $(TYPE) && ar rc ../$@ $(OBJ)
- ! $(RANLIB) $@
- !
- ! # Make a DSO
- ! libpcap.so: libpcap.a
- ! @rm -f $@
- ! $(LD) $(LDFLAGS) -shared -all -soname libpcap.so libpcap.a -o $@
- !
- ! libpcap_o32.a: $(TYPE) $(OBJ)
- ! @rm -f $@
- ! cd $(TYPE) && ar rc ../$@ $(OBJ)
- ! $(RANLIB) $@
-
- ! libpcap_o32.so: libpcap_o32.a
- ! @rm -f $@
- ! $(LD) $(LDFLAGS) -shared -all -soname libpcap.so libpcap_o32.a -o $@
-
- ! libpcap_64.a: $(TYPE) $(OBJ)
- @rm -f $@
- ! cd $(TYPE) && ar rc ../$@ $(OBJ)
- $(RANLIB) $@
-
- + libpcap_64.so: libpcap_64.a
- + @rm -f $@
- + $(LD) $(LDFLAGS) -shared -all -soname libpcap.so libpcap_64.a -o $@
- +
- +
- scanner.c: $(srcdir)/scanner.l
- @rm -f $@
- $(LEX) -t $< > $$$$.$@; mv $$$$.$@ $@
- ***************
- *** 109,117 ****
- mv y.tab.c grammar.c
- mv y.tab.h tokdefs.h
-
- grammar.o: grammar.c
- @rm -f $@
- ! $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c
-
- version.o: version.c
- version.c: $(srcdir)/VERSION
- --- 146,155 ----
- mv y.tab.c grammar.c
- mv y.tab.h tokdefs.h
-
- + # Special case for .o target (see .c.o rule)
- grammar.o: grammar.c
- @rm -f $@
- ! $(CC) $(CFLAGS) -Dyylval=pcap_lval -c grammar.c -o $(srcdir)/$(TYPE)/$@
-
- version.o: version.c
- version.c: $(srcdir)/VERSION
- ***************
- *** 136,141 ****
- --- 174,180 ----
-
- clean:
- rm -f $(CLEANFILES)
- + rm -rf n32 o32 64
-
- distclean:
- rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
- *** ./pcap.h Thu Oct 16 05:59:16 1997
- --- ../libpcap-0.4/./pcap.h Wed Nov 11 17:14:49 1998
- ***************
- *** 82,88 ****
- --- 82,96 ----
- * packet interfaces.
- */
- struct pcap_pkthdr {
- +
- + /* for 64 bit binaries timeval structure is different */
- +
- + #if (_MIPS_SZLONG == 64)
- + struct irix5_timeval ts; /* 64 bit condition. see /usr/include/net/raw.h */
- + #else
- struct timeval ts; /* time stamp */
- + #endif /* _MIPS_SZLONG == 64 */
- +
- bpf_u_int32 caplen; /* length of portion present */
- bpf_u_int32 len; /* length this packet (off wire) */
- };
-